package com.demo1;

public class SystemEnum {
    /**
     * 上架状态
     * @author ：Match
     */
    public enum StatusEnum implements Constant {

        YES("是", 1),
        NO("否", 2);

        private String desc;
        private int value;
        StatusEnum(String desc, int value){
            this.desc = desc;
            this.value = value;
        }
        @Override
        public String desc() {
            return desc;
        }
        @Override
        public int val() {
            return value;
        }
    }

    public static void main(String[] args) {
    }
}
